package com.csy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author csy
 * @since 2018-09-11
 */
@TableName("sys_user")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "USER_ID", type = IdType.AUTO)
    private Long userId;
    /**
     * 用户名
     */
    @TableField("USER_NAME")
    private String userName;
    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;
    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("EDIT_TIME")
    private Date editTime;
    /**
     * 所属部门ID
     */
    @TableField("DEPT_ID")
    private Integer deptId;
    /**
     * 电话
     */
    @TableField("PHONE")
    private String phone;
    /**
     * 邮箱
     */
    @TableField("EMAIL")
    private String email;
    /**
     * 作废标志
     */
    @TableField("FLAG_INVALID")
    private Integer flagInvalid;
    /**
     * 账号
     */
    @TableField("USER_CODE")
    private String userCode;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getFlagInvalid() {
        return flagInvalid;
    }

    public void setFlagInvalid(Integer flagInvalid) {
        this.flagInvalid = flagInvalid;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        ", userId=" + userId +
        ", userName=" + userName +
        ", password=" + password +
        ", createTime=" + createTime +
        ", editTime=" + editTime +
        ", deptId=" + deptId +
        ", phone=" + phone +
        ", email=" + email +
        ", flagInvalid=" + flagInvalid +
        ", userCode=" + userCode +
        "}";
    }
}
